/*
  Name: 6.18, page 212
  Copyright: 
  Author: 
  Date: 
  Description: 
*/
#include <algorithm>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <string>
#include <stdexcept>
#include <vector>

using namespace std;

int main()
{
	// modified by vincent
    string x, y, y, m, c, a; // conflict by teacheresl
    string do_again;
    
    do
    {
		cout << "add by vincent" << endl; // by vincent
           cout << "Enter two strings to compare: ";
           cin >> x >> y;
          if(x <= y)
               cout << x << " is less than " << y << endl;
          else
               cout << y << " is less than " << x << endl;
          
		cout << "modified by teacheresl" << endl; //by teacheresl
               
          cout << "do again?(y/n)";
          cin >> do_again;
          
    } while (!do_again.empty() && do_again[0] != 'n'); //for loop confirmation
    
    cout << !do_again.empty(); // equal to 1, true
    
    system("pause");
    return EXIT_SUCCESS;
    
}


